[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function ltrim - trims leading blanks
Syntax char *ltrim(char *source);
Prototype in stringhk.h
Remarks remove leading blanks in a string. The string
passed to ltrim (source) is modified.
Return value returns a pointer to source.
Example #include <stringhk.h>
#include <stdio.h> /* for the printf */
main()
{
char msg[25] = " Hello everyone ";
printf("String [%s]\n",msg);
printf("ltrim [%s]\n",ltrim(msg));
}
Program output String [ Hello everyone ]
ltrim [Hello everyone ]
See Also:
atrim()
rtrim()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson